cc.Class({
    extends: cc.Component,

    properties: {

    },
    init(blockScene) {
        this.blockScene = blockScene;
    },

    // onLoad () {},

    onBeginContact(contact, self, other) {
        var self = this;
        console.log("onBeginContact------", other.tag);
        switch (other.tag) {
            case 2: //障碍物 碰到气球 游戏结束
                this.blockScene.gameOver(self.node);
                break;
        }
    },

    update(dt) {},
});